import React, { Component } from 'react'
import '../../componentStyle/star.css'

export default class Star extends Component {
    render() {
        const left = this.props.item.left / 1800 * this.props.screenWidth;
        return (
            <div className="shine shine2" style={{
                left: left,
                top: (this.props.item.top),
                transform: [`scale(${this.props.item.scale})`],
                animationDuration: (this.props.item.duration)
            }}></div>
        )
    }
}
